const Base = require('./base.js');

// module.exports = class extends Base {
module.exports = class extends  think.Controller {
	constructor(...arg) {
		super(...arg);
	}
	openAction() {
		let ws = this.websocket;

		ws.send('websocket连接成功'+think.datetime());
		return this.success();
	}
	messageAction() {
		let ws = this.websocket;
		think.logger.info(data)
		ws.send('消息'+think.datetime());
	}

	closeAction() {
		let ws = this.websocket;
		ws.send('websocket关闭');
	}

};
